package com.furnitur.modules.portal.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.furnitur.core.entity.order.Order;
import com.furnitur.modules.portal.dto.order.OrderCreateDTO;
import org.springframework.transaction.annotation.Transactional;

public interface PortalOrderService {
    Order createOrder(OrderCreateDTO orderDTO);
    void payOrder(String orderNo);
    Order getOrderDetail(String orderNo);
    /**
     * 获取订单列表
     */
    Page<Order> getOrderList(Integer pageNum, Integer pageSize, Integer status);
    /**
     * 取消订单
     */
    void cancelOrder(String orderNo);

    @Transactional(rollbackFor = Exception.class)
    void confirmReceipt(String orderNo, Long userId);
}